<template>
    <div>
        <p :style="{color:str,backgroundColor:'blue'}">动态设置style</p>
    </div>
</template>

<script>
export default {
    name: 'VuBaseApp',

    data() {
        return {
            str:'pink'
        };
    },

    mounted() {
        
    },

    methods: {
        
    },
};
</script>

<style lang="scss" scoped>

</style>